package org.ielts.domain.log;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.security.User;

@Entity
@DiscriminatorValue("AppointTutor")
public class AppointTutorLog extends SchoolLog {

	@ManyToOne(fetch = FetchType.EAGER)
	private User tutor;

	public User getTutor() {
		return tutor;
	}

	public void setTutor(User tutor) {
		this.tutor = tutor;
	}

	@Override
	public String getLogType() {
		return "AppointTutor";
	}

	public AppointTutorLog() {
	setLogType("AppointTutor");
	}
}
